package org.cypress.rtpack.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.cypress.rtpack.common.core.Result;
import org.cypress.rtpack.entity.RtpackQushi;
import org.cypress.rtpack.entity.RtpackQutag;
import org.cypress.rtpack.entity.SoeBiao;
import org.cypress.rtpack.entity.SoeSysname;
import org.cypress.rtpack.mapper.SoeBiaoMapper;
import org.cypress.rtpack.service.SoeBiaoService;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * @author getty
 */
@Service
public class SoeBiaoServiceImpl extends ServiceImpl<SoeBiaoMapper, SoeBiao> implements SoeBiaoService
{
    public List<SoeBiao> getSoeByname(String tagName)
    {
        QueryWrapper<SoeBiao> wrapper = new QueryWrapper<>();
        wrapper.eq("tagName",tagName);  // 只查这两个字段
        List<SoeBiao> list = this.list(wrapper);
        return list;
    }

    public List<SoeBiao> getAll() {
        LambdaQueryWrapper<SoeBiao> soebiao = new LambdaQueryWrapper<>();
        List<SoeBiao> getList = this.getBaseMapper().selectList(soebiao);
        return getList;
    }
}